package cn.yj.provider.api;

import cn.yj.frame.annotation.RpcService;
import cn.yj.service.api.IHelloService;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author 永健
 * @since 2022-01-18 14:49
 */
@RpcService
public class HelloService implements IHelloService {

    @Value("${server.port}")
    private Integer port;

    @Override
    public String getHello() {
        return "I am provider say hello to you !!   ===> port:" + port;
    }

    @Override
    public String sayHello(String name) {
        return "from message is: '" + name + "'     ===> port:"+port;
    }
}
